<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<!DOCTYPE html>
<html>
<head id="MyHead">
<script src="../resources/Scripts/jquery-1.8.3.min.js" type="text/javascript"></script>
<script src="../resources/Scripts/JScriptIndex.js" type="text/javascript"></script>
<script src="../resources/Scripts/jquery.easyui.min-1.3.5.js"type="text/javascript"></script>
<!-- <link href="../resources/Content/Default.css" rel="stylesheet" type="text/css" /> -->
<link href="../resources/Content/IndexStyle.css" rel="stylesheet" type="text/css" />
<link href="../resources/Res/easyui/themes/icon.css" rel="stylesheet"
	type="text/css" />
<script src="../resources/Res/easyui/locale/easyui-lang-zh_CN.js"
	type="text/javascript"></script>
<link href="../resources/Res/easyui/themes/default/easyui.css" rel="stylesheet"
	type="text/css" />
<title>C_Car</title>
<script type="text/javascript" language="javascript">
	$(function() {
		$
				.extend(
						$.fn.datagrid.methods,
						{
							addToolbarItem : function(jq, items) {
								return jq
										.each(function() {
											var dpanel = $(this).datagrid(
													'getPanel');
											var toolbar = dpanel
													.children("div.datagrid-toolbar");
											if (!toolbar.length) {
												toolbar = $(
														"<div class=\"datagrid-toolbar\"><table cellspacing=\"0\" cellpadding=\"0\"><tr></tr></table></div>")
														.prependTo(dpanel);
												$(this).datagrid('resize');
											}
											var tr = toolbar.find("tr");
											for (var i = 0; i < items.length; i++) {
												var btn = items[i];
												if (btn == "-") {
													$(
															"<td><div class=\"datagrid-btn-separator\"></div></td>")
															.appendTo(tr);
												} else {
													var td = $("<td></td>")
															.appendTo(tr);
													var b = $(
															"<a href=\"javascript:void(0)\"></a>")
															.appendTo(td);
													b[0].onclick = eval(btn.handler
															|| function() {
															});
													b.linkbutton($.extend({},
															btn, {
																plain : true
															}));
												}
											}
										});
							},
							removeToolbarItem : function(jq, param) {
								return jq
										.each(function() {
											var dpanel = $(this).datagrid(
													'getPanel');
											var toolbar = dpanel
													.children("div.datagrid-toolbar");
											var cbtn = null;
											if (typeof param == "number") {
												cbtn = toolbar.find("td").eq(
														param).find(
														'span.l-btn-text');
											} else if (typeof param == "string") {
												cbtn = toolbar
														.find("span.l-btn-text:contains('"
																+ param + "')");
											}
											if (cbtn && cbtn.length > 0) {
												cbtn.closest('td').remove();
												cbtn = null;
											}
										});
							}
						});
	});
</script>


<script type="text/javascript" language="javascript">
	$(function() {

		setTimeout(function() {
			youhaohuizong();
		}, 1000);
		setTimeout(function() {
			weizhangtongji();
		}, 1000);
		setTimeout(function() {
			shigutongji();
		}, 1000);
		setTimeout(function() {
			WeixiuTongji();
		}, 1000);
		setTimeout(function() {
			getDataWeixiuHuizong();
		}, 1000);
	});

	function youhaohuizong() {

		$('#flexigridDataHuizong').datagrid({
			//title: '油耗信息', //列表的标题
			iconCls : 'icon-site',
			width : 'auto',
			height : 'auto',
			nowrap : false,
			striped : true,
			collapsible : true,
			singleSelect : false,
			url : '/carOilList', //获取数据的url
			sortName : 'pk_id',
			sortOrder : 'desc',
			idField : 'pk_id',

			toolbar : "#carSearch",
			  columns: [[
				{ field: 'coGasstation', title: '加油站', width: 152 }
				, { field: 'coRefueltime', title: '加油日期', width: 82
			      , formatter: function (value, rec) {
			        if (value) {
			            return dateConvert(value);
			        }
			    }  
				}
			    , { field: 'ciPlatenumber', title: '车牌号', width: 82 }
			   	, { field: 'ciBranchschool', title: '所属分校', width: 82 }
				, { field: 'coCost', title: '加油费用', width: 100, /*  formatter: function (value, rec) { return formatCurrency(value) },  */ align: 'right', sortable: true }
				, { field: 'coUnits', title: '单位', width: 82 }
				, { field: 'coRefuelnumber', title: '加油单号', width: 82 }
				, { field: 'coOiltype', title: '加油型号', width: 82 }
				, { field: 'coPrice', title: '单价', width: 82 }
				, { field: 'ciInitmileage', title: '公里数', align: 'right', width: 100, sortable: true }
				, { field: 'ciDriver', title: '驾驶员', width: 82 }
				, { field: 'coRecorder', title: '信息录入员', width: 82 }
				, { field: 'coRecordtime', title: '信息录入时间', width: 82,
					 formatter: function (value, rec) {
				        if (value) {
				            return dateConvert(value);
				        }
				    }
				}
				, { field: 'coMemo', title: '备注', width: 282 }
			]], 

			pageList : [ 10, 50, 500, 5000, 5000, 10000, 20000, 50000 ],
			pagination : true,
			rownumbers : true

		});

	}

	//“查询”按钮，弹出查询框
	function flexiQuery() {
		$('#divQuery').dialog({
			buttons : [ {
				text : '查询',
				iconCls : 'icon-ok',
				handler : function() {
					//alert(search)
					//执行查询                        
					$('#flexigridData').datagrid('reload', {
						
						jiayouzhan : $('#jiayouzhan').val(),
						Chepaihao:$('#Chepaihao').val(),
						fenxiaoID : $('#fenxiaoID').val(),
						CO_dateStart_Time : $('#CO_dateStart_Time').val(),
						CO_dateEnd_Time : $('#CO_dateEnd_Time').val()
						
					});
				}
			}, {
				text : '取消',
				iconCls : 'icon-cancel',
				handler : function() {
					$('#divQuery').dialog("close");
				}
			} ]
		});
		$('#divQuery').dialog("open");
	};

	//“选择”按钮，在其他（与此页面有关联）的页面中，此页面以弹出框的形式出现，选择页面中的数据
	function flexiSelect() {

		var rows = $('#flexigridData').datagrid('getSelections');
		if (rows.length == 0) {
			$.messager.alert('操作提示', '请选择数据!', 'warning');
			return false;
		}

		var arr = [];
		for (var i = 0; i < rows.length; i++) {
			arr.push(rows[i].pk_id);
		}
		arr.push("^");
		for (var i = 0; i < rows.length; i++) {
			arr.push(rows[i].C_no);
		}
		//主键列和显示列之间用 ^ 分割   每一项用 , 分割
		if (arr.length > 0) {//一条数据和多于一条
			returnParent(arr.join("&")); //每一项用 & 分割
		}
	}
	//导航到查看详细的按钮
	function getView() {

		var arr = $('#flexigridData').datagrid('getSelections');

		if (arr.length == 1) {
			//window.location.href = "Details/" + arr[0].pk_id;
			window.parent.popen1(arr[0].pk_id);
		} else {
			$.messager.alert('操作提示', '请选择一条数据!', 'warning');
		}
		return false;
	}
	//导航到创建的按钮
	function flexiCreate() {

		window.location.href = "Create";
		return false;
	}
	//导航到修改的按钮
	function flexiModify() {

		var arr = $('#flexigridData').datagrid('getSelections');

		if (arr.length == 1) {
			window.location.href = "Edit/" + arr[0].pk_id;

		} else {
			$.messager.alert('操作提示', '请选择一条数据!', 'warning');
		}
		return false;

	};
	//删除的按钮
	function flexiDelete() {

		var rows = $('#flexigridData').datagrid('getSelections');
		if (rows.length == 0) {
			$.messager.alert('操作提示', '请选择数据!', 'warning');
			return false;
		}

		var arr = [];
		for (var i = 0; i < rows.length; i++) {
			arr.push(rows[i].pk_id);
		}

		$.messager.confirm('操作提示', "确认删除这 " + arr.length + " 项吗？", function(r) {
			if (r) {
				$.post("Delete", {
					query : arr.join(",")
				}, function(res) {
					if (res == "OK") {
						//移除删除的数据

						$.messager.alert('操作提示', '删除成功!', 'info');
						$("#flexigridData").datagrid("reload");
						$("#flexigridData").datagrid("clearSelections");
					} else {
						if (res == "") {
							$.messager.alert('操作提示',
									'删除失败!请查看该数据与其他模块下的信息的关联，或联系管理员。', 'info');
						} else {
							$.messager.alert('操作提示', res, 'info');
						}
					}
				});
			}
		});

	};

	function findData() {

		$('#flexigridDataHuizong').datagrid('reload', {
			jiayouzhan : $("#jiayouzhan").combobox("getValue"),
			Chepaihao:$('#Chepaihao').val(),
			fenxiaoID : $('#fenxiaoID').combobox("getValue"),
			CO_dateStart_Time : $('#CO_dateStart_Time').val(),
			CO_dateEnd_Time : $('#CO_dateEnd_Time').val()
		});
	}

	function findDataCar() {
		var search = "";
		var C_no = $("#C_no").val();
		var C_sno = $("#C_sno").val();

		var fenxiaoID1 = $("#fenxiaoID1").combobox("getValue");

		var jiaolianID = $("#jiaolianID").combobox("getValue");

		var C_Class = $("#C_Class").combobox("getValue");

		if (C_no != "") {
			search += "C_no&" + C_no + "^";
		}

		if (C_sno != "") {
			search += "C_sno&" + C_sno + "^";
		}

		if (fenxiaoID1 != "") {
			search += "fenxiaoID&" + fenxiaoID1 + "^";
		}
		//alert(search);
		if (jiaolianID != "") {
			search += "jiaolianID&" + jiaolianID + "^";
		}

		if (C_Class != "") {
			search += "C_Class&" + C_Class + "^";
		}

		$('#flexigridData').datagrid('reload', {
			search : search
		});
	}

	function weizhangtongji() {

		$('#flexigridDataWeizhang').datagrid({
			//title: '违章信息', //列表的标题
			iconCls : 'icon-site',
			width : 'auto',
			height : 'auto',
			nowrap : false,
			striped : true,
			collapsible : true,
			singleSelect : false,
			//queryParams: { search: 'FK_CCID&^' },
			url : '/carBreakList', //获取数据的url
			sortName : 'pk_id',
			sortOrder : 'desc',
			idField : 'pk_id',

			toolbar : "#weizhangSearch",
			columns : [ [ {
				field : 'cnTime',
				title : '违章日期',
				width : 82
			 , formatter: function (value, rec) {
			    if (value) {
			        return dateConvert(value);
			    }
			} 
			}, {
				field : 'ciPlatenumber',
				title : '车牌号',
				width : 82
			}, {
				field : 'ciBranchschool',
				title : '所属分校',
				width : 82
			}, {
				field : 'cbUser',
				title : '使用人',
				width : 82
			}, {
				field : 'cbBreaktype',
				title : '违章类型',
				width : 82
			}, {
				field : 'cbBreakpalce',
				title : '违章地点',
				width : 82
			}, {
				field : 'cbBreakcause',
				title : '违章原因',
				width : 82
			}, {
				field : 'cbBreakcost',
				title : '违章金额',
				width : 82
			}, {
				field : 'cbBreaknumber',
				title : '违章单号 ',
				width : 100,
				sortable : true
			}
			//		, { field: 'FK_CSID', title: '处罚单位', width: 82 }
			, {
				field : 'cbMemo',
				title : '备注',
				width : 182
			}, {
				field : 'cbRecorder',
				title : '录入人',
				width : 82
			}, {
				field : 'cbRecordtime',
				title : '录入时间',
				width : 82
			  , formatter: function (value, rec) {
			     if (value) {
			         return dateConvert(value);
			     }
			 } 
			} ] ],
			pageList : [ 10, 50, 500, 5000, 5000, 10000, 20000, 50000 ],
			pagination : true,
			rownumbers : true

		});
	}

	function findDataWeiz() {

		$('#flexigridDataWeizhang').datagrid('reload', {
			weizCarNo : $("#weizCarNo").val(),
			weizFenxiaoID:$("#weizFenxiaoID").combobox("getValue")
		});
	}

	//事故信息统计

	function shigutongji() {

		$('#flexigridDataShigu').datagrid({
			//title: '油耗信息', //列表的标题
			iconCls : 'icon-site',
			width : 'auto',
			height : 'auto',
			nowrap : false,
			striped : true,
			collapsible : true,
			singleSelect : false,
			url : '/carAccList', //获取数据的url
			sortName : 'pk_id',
			sortOrder : 'desc',
			idField : 'pk_id',

			toolbar : "#shiguSearch",
			columns : [ [ {
				field : 'caTime',
				title : '事故日期',
				width : 82
			  , formatter: function (value, rec) {
			     if (value) {
			         return dateConvert(value);
			     }
			 }
			}, {
				field : 'ciPlatenumber',
				title : '车牌号',
				width : 82
			}, {
				field : 'ciBranchschool',
				title : '所属分校',
				width : 82
			}, {
				field : 'caUser',
				title : '使用人',
				width : 82
			}, {
				field : 'caAccidentplace',
				title : '事故地点',
				width : 82
			}, {
				field : 'caAccidentcause',
				title : '事故原因',
				width : 182
			}, {
				field : 'caResponsibleparty',
				title : '责任方',
				width : 82
			}, {
				field : 'caLossoccurredCompany',
				title : '出险单位',
				width : 82
			}, {
				field : 'caClaimmoney',
				title : '理赔金额',
				width : 82
			} ] ],
			pageList : [ 10, 50, 500, 5000, 5000, 10000, 20000, 50000 ],
			pagination : true,
			rownumbers : true

		});
	}

	function findDataShigu() {

		
		$('#flexigridDataShigu').datagrid('reload', {
			ShiguCarNo:$('#ShiguCarNo').val(),	
			ShiguFenxiaoID : $('#ShiguFenxiaoID').combobox("getValue"),
		
		});
	}

	//维修信息统计

	function WeixiuTongji() {

		$('#flexigridDataWeixiu').datagrid({
			//title: '油耗信息', //列表的标题
			iconCls : 'icon-site',
			width : 'auto',
			height : 'auto',
			nowrap : true,
			striped : true,
			collapsible : true,
			singleSelect : false,
			//queryParams: { search: 'FK_CCID&^' },
			url : '/carRepairList', //获取数据的url
			sortName : 'pk_id',
			sortOrder : 'desc',
			idField : 'pk_id',

			toolbar : "#weixiuSearch",
			columns : [ [ {
				field : 'crTime',
				title : '维修日期',
				width : 82
			  , formatter: function (value, rec) {
			     if (value) {
			         return dateConvert(value);
			     }
			 } 
			}, {
				field : 'ciPlatenumber',
				title : '车牌号',
				width : 82
			}
			  , { field: 'ciBranchschool', title: '所属分校', width: 82 }
			, {
				field : 'crCategoy',
				title : '维修性质',
				width : 82
			}, {
				field : 'crPosition',
				title : '维修部件',
				width : 82
			}, {
				field : 'crFactory',
				title : '维修厂',
				width : 182
			}, {
				field : 'crUser',
				title : '使用人',
				width : 82
			}, {
				field : 'crContent',
				title : '维修内容',
				width : 182
			}, {
				field : 'crCost',
				title : '维修费用',
				width : 82
			}, {
				field : 'crMountingamount',
				title : '配件金额',
				width : 82
			}, {
				field : 'crManhourCost',
				title : '工时费',
				width : 82
			} ] ],
			pageList : [ 10, 50, 500, 5000, 5000, 10000, 20000, 50000 ],
			pagination : true,
			rownumbers : true

		});
	}

	function findDataWeixiu() {

		/* var Start_Time = $("#WeixiuDateStart_Time").val();
	 	var End_Time = $("#WeixiuDateEnd_Time").val(); */


	 	
	 	
		$('#flexigridDataWeixiu').datagrid('reload', {
			WeixiuCarNo:$('#WeixiuCarNo').val(),	
			WeixiuFenxiaoID : $('#WeixiuFenxiaoID').combobox("getValue"),
			WeixiuXingzhi : $('#WeixiuXingzhi').combobox("getValue"),
			weixiubujian : $('#weixiubujian').combobox("getValue"),
			
		});
	}

	function getDataWeixiuHuizong() {

		$('#flexigridDataWeixiuHuizong').datagrid(
				{
					//title: '学员', //列表的标题
					iconCls : 'icon-site',
					width : 'auto',
					height : 'auto',
					nowrap : true,
					toolbar : "#WeixiuHuizongSearch",
					striped : true,
					collapsible : true,
					url : '/AllRepair', //获取数据的url
					/* queryParams : {
						search : $("#riqiStart_Time").val() + ","
								+ $("#riqiEnd_Time").val() + ",,"
					}, */
					sortName : 'PK_ID',
					sortOrder : 'desc',
					idField : 'PK_ID',
					pageList : [ 100, 200 ],
					pagination : true,
					rownumbers : true

				});

	}

	function findDataWeixiuHuizong() {

		var riqiStart_Time = $("#riqiStart_Time").val(); //关键字
		var riqiEnd_Time = $("#riqiEnd_Time").val(); //关键字

		var search = riqiStart_Time + ',' + riqiEnd_Time;

		//执行查询
		//alert(search1);
		$('#flexigridDataWeixiuHuizong').datagrid('reload', {
			search : search
		});
	}

	//“导出EXCEL”按钮     在6.0版本中修改
	
	    function flexiExport(type) {

        if (confirm("系统提示：确认要导出吗？")) {

        	$.ajax({
				url : "/Excel"+type,
				type : "post",
		/* 		data : $('#form1').serialize(), */
				dataType : "json",
				success : function(result) {
					console.log(result.msg)
					if (result.msg =='OK') {
						alert("导出成功！");
					/* 	parent.location.reload(); */
						
					}

				}
			});
           /*  window.location.href = '/AnalysisFenXiao'; */
            
        }
        else {
            return false;
        }
	
	}
	
/* 	function flexiExport(type) {

		$.messager
				.confirm(
						'操作提示',
						"确认要导出EXCEL！",
						function(r) {

							if (r) {
								progress();
								//将查询条件按照分隔符拼接成字符串

								//            $('#divQuery').find(":text,:selected,select,textarea,:hidden,:checked,:password").each(function () {
								//                search = search + this.id + "&" + this.value + "^";
								//            });

								var search = "";
								var url = "";
								var sort = "";
								var sortor = "";
								if (type == "youhao") {
									url = "../resources/C_oil/daochu";
									sort = $('#flexigridDataHuizong').datagrid(
											'options').sortName;
									sortor = $('#flexigridDataHuizong')
											.datagrid('options').sortOrder;
									var p = $('#flexigridDataHuizong')
											.datagrid('options').columns[0];
									var field = []; //所有的列名
									var title = []; //所有的标题名称

									var CO_dateStart_Time = $(
											"#CO_dateStart_Time").val();
									var CO_dateEnd_Time = $("#CO_dateEnd_Time")
											.val();

									var fenxiaoID = $("#fenxiaoID").combobox(
											"getValue");

									var jiayouzhan = $("#jiayouzhan").combobox(
											"getValue");

									var Chepaihao = $("#Chepaihao").val();

									if (jiayouzhan != "") {
										search += "FK_CSID&" + jiayouzhan + "^";
									}

									if (CO_dateStart_Time != "") {
										search += "CO_dateStart_Time&"
												+ CO_dateStart_Time + "^";
									}

									if (CO_dateEnd_Time != "") {
										search += "CO_dateEnd_Time&"
												+ CO_dateEnd_Time + "^";
									}
									//alert(search);
									if (Chepaihao != "") {
										search += "Chepaihao&" + Chepaihao
												+ "^";
									}

									if (fenxiaoID != "") {
										search += "fenxiaoID&" + fenxiaoID
												+ "^";
									}
									//alert(p0.lenth);

									$(p).each(function() {
										if (this.title != null) {
											field.push(this.field);
											title.push(this.title);
										}

									});
								} else if (type == "weizhang") {
									url = "../resources/C_break/daochu";
									sort = $('#flexigridDataWeizhang')
											.datagrid('options').sortName;
									sortor = $('#flexigridDataWeizhang')
											.datagrid('options').sortOrder;
									var p = $('#flexigridDataWeizhang')
											.datagrid('options').columns[0];
									var field = []; //所有的列名
									var title = []; //所有的标题名称

									var Start_Time = $("#weizDateStart_Time")
											.val();
									var End_Time = $("#weizDateEnd_Time").val();

									var fenxiaoID = $("#weizFenxiaoID")
											.combobox("getValue");

									var Chepaihao = $("#weizCarNo").val();

									if (Start_Time != "") {
										search += "CB_dateStart_Time&"
												+ Start_Time + "^";
									}

									if (End_Time != "") {
										search += "CB_dateEnd_Time&" + End_Time
												+ "^";
									}
									//alert(search);
									if (Chepaihao != "") {
										search += "Chepaihao&" + Chepaihao
												+ "^";
									}

									if (fenxiaoID != "") {
										search += "fenxiaoID&" + fenxiaoID
												+ "^";
									}
									//alert(p0.lenth);

									$(p).each(function() {
										if (this.title != null) {
											field.push(this.field);
											title.push(this.title);
										}

									});
								} else if (type == "shigu") {
									url = "../resources/C_accident/daochu";
									sort = $('#flexigridDataShigu').datagrid(
											'options').sortName;
									sortor = $('#flexigridDataShigu').datagrid(
											'options').sortOrder;
									var p = $('#flexigridDataShigu').datagrid(
											'options').columns[0];
									var field = []; //所有的列名
									var title = []; //所有的标题名称

									var Start_Time = $("#ShiguDateStart_Time")
											.val();
									var End_Time = $("#ShiguDateEnd_Time")
											.val();

									var fenxiaoID = $("#ShiguFenxiaoID")
											.combobox("getValue");

									var Chepaihao = $("#ShiguCarNo").val();

									if (Start_Time != "") {
										search += "CA_accdateStart_Time&"
												+ Start_Time + "^";
									}

									if (End_Time != "") {
										search += "CA_accdateEnd_Time&"
												+ End_Time + "^";
									}
									//alert(search);
									if (Chepaihao != "") {
										search += "Chepaihao&" + Chepaihao
												+ "^";
									}

									if (fenxiaoID != "") {
										search += "fenxiaoID&" + fenxiaoID
												+ "^";
									}
									//alert(p0.lenth);

									$(p).each(function() {
										if (this.title != null) {
											field.push(this.field);
											title.push(this.title);
										}

									});
								} else if (type == "weixiu") {
									url = "../resources/C_repair/daochu";
									sort = $('#flexigridDataWeixiu').datagrid(
											'options').sortName;
									sortor = $('#flexigridDataWeixiu')
											.datagrid('options').sortOrder;
									var p = $('#flexigridDataWeixiu').datagrid(
											'options').columns[0];
									var field = []; //所有的列名
									var title = []; //所有的标题名称

									var Start_Time = $("#WeixiuDateStart_Time")
											.val();
									var End_Time = $("#WeixiuDateEnd_Time")
											.val();

									var fenxiaoID = $("#WeixiuFenxiaoID")
											.combobox("getValue");

									var Chepaihao = $("#WeixiuCarNo").val();

									var WeixiuXingzhi = $("#WeixiuXingzhi")
											.combobox("getValue");

									var weixiubujian = $("#weixiubujian")
											.combobox("getValue");

									if (Start_Time != "") {
										search += "CR_dateStart_Time&"
												+ Start_Time + "^";
									}

									if (End_Time != "") {
										search += "CR_dateEnd_Time&" + End_Time
												+ "^";
									}
									//alert(search);
									if (Chepaihao != "") {
										search += "Chepaihao&" + Chepaihao
												+ "^";
									}

									if (fenxiaoID != "") {
										search += "fenxiaoID&" + fenxiaoID
												+ "^";
									}

									if (WeixiuXingzhi != "") {
										search += "CR_type&" + WeixiuXingzhi
												+ "^";
									}

									if (weixiubujian != "") {
										search += "weixiubujian&"
												+ weixiubujian + "^";
									}
									//alert(p0.lenth);

									$(p).each(function() {
										if (this.title != null) {
											field.push(this.field);
											title.push(this.title);
										}

									});
								}
								//alert(search1);
								var titlestr = removeHTMLTag(title.join(","))
								//alert(titlestr);
								//alert(field.join(","));
								$.post(url, {
									title : titlestr,
									field : field.join(","),
									sortName : sort,
									sortOrder : sortor,
									search : search
								}, function(res) {
									//alert(res);
									$.messager.progress('close');
									window.location.href = res;
								});
							}

						});
	} */
	function progress() {
		var win = $.messager.progress({
			title : '请等待',
			text : '数据正在处理中'
		});
	}
</script>
<script src="../resources/Res/My97DatePicker/WdatePicker.js"
	type="text/javascript"></script>

<base target="_self">
</head>
<body>

	<div class="easyui-panel" fit="true"
		style="width: 985px; height: 563px; padding: 5px;" border="false">
		<div class="easyui-tabs" data-options="tabWidth:125" fit="true">
			<div title="车辆油耗统计" style="padding: 5px;">
				<table id="flexigridDataHuizong" fit="true">
				</table>
			</div>
			<div title="车辆违章统计" style="padding: 5px;">
				<table id="flexigridDataWeizhang" fit="true">
				</table>
			</div>
			<div title="车辆事故统计" style="padding: 5px;">
				<table id="flexigridDataShigu" fit="true">
				</table>
			</div>
			<div title="车辆维修统计" style="padding: 5px;">
				<table id="flexigridDataWeixiu" fit="true">
				</table>
			</div>
			<div title="车辆维修汇总" style="padding: 5px;">
				<table id="flexigridDataWeixiuHuizong" fit="true"
					class="easyui-datagrid">
					<thead>
						<tr>

							<th data-options="field:'weixiudanwei',width:200,align:'left'">
								车辆维修单位</th>
							<th data-options="field:'weixiushuliang',width:100,align:'right'">
								维修次数</th>
							<th data-options="field:'weixiujine',width:100,align:'right'">
								维修金额</th>
						</tr>
					</thead>
				</table>
			</div>
		</div>
	</div>
	<div id="carSearch" style="padding: 5px;">
		<div class="row">
			&nbsp;加油站：<select class="easyui-combobox" id="jiayouzhan"
				name="jiayouzhan" style="width: 120px;"><option value="">请选择</option>
				<option value="中石油">中石油</option>
				<option value="中石化">中石化</option>
			</select> <!-- <span>&nbsp;加油日期：</span><input class="input-textbox"
				onclick="WdatePicker()" type="text" id="CO_dateStart_Time"
				value='' size="10" style="width: 80px;" /> &nbsp;到 <input
				class="input-textbox" onclick="WdatePicker()" style="width: 80px;"
				type="text" id="CO_dateEnd_Time" value='' size="10" /> -->
			&nbsp;车牌号：<input class="input-textbox" type="text" id="Chepaihao"
				value="" style="width: 80px;" size="10" /> &nbsp;所属分校：<select
				class="easyui-combobox" id="fenxiaoID" name="fenxiaoID"
				style="width: 80px;">
				<option value="">请选择</option>
				<option value="总校">总校</option>
				<option value="挂靠">挂靠</option>
			</select> &nbsp;<a href="javascript:findData();" class="easyui-linkbutton"
				data-options="iconCls:'icon-search'">查询</a> &nbsp;<a
				href="javascript:flexiExport('youhao');" class="easyui-linkbutton"
				data-options="iconCls:'icon-search'">导出EXCEL</a>
		</div>
	</div>
	<div id="weizhangSearch" style="padding: 5px;">
		<div class="row">
			<!-- <span>&nbsp;违章日期：</span><input class="input-textbox"
				onclick="WdatePicker()" type="text" id="weizDateStart_Time"
				value='2017-12-26' size="10" style="width: 80px;" /> &nbsp;到 <input
				class="input-textbox" onclick="WdatePicker()" style="width: 80px;"
				type="text" id="weizDateEnd_Time" value='2018-01-18' size="10" /> -->
			&nbsp;车牌号：<input class="input-textbox" type="text" id="weizCarNo"
				value="" style="width: 80px;" size="10" /> &nbsp;所属分校：<select
				class="easyui-combobox" id="weizFenxiaoID" name="weizFenxiaoID"
				style="width: 80px;"><option value="">请选择</option>
				<option value="总校">总校</option>
				<option value="挂靠">挂靠</option>
			</select> &nbsp;<a href="javascript:findDataWeiz();" class="easyui-linkbutton"
				data-options="iconCls:'icon-search'">查询</a> &nbsp;<a
				href="javascript:flexiExport('weizhang');" class="easyui-linkbutton"
				data-options="iconCls:'icon-search'">导出EXCEL</a>
		</div>
	</div>
	<div id="shiguSearch" style="padding: 5px;">
		<div class="row">
		<!-- 	<span>&nbsp;事故日期：</span><input class="input-textbox"
				onclick="WdatePicker()" type="text" id="ShiguDateStart_Time"
				value='' size="10" style="width: 80px;" /> &nbsp;到 <input
				class="input-textbox" onclick="WdatePicker()" style="width: 80px;"
				type="text" id="ShiguDateEnd_Time" value='' size="10" /> -->
			&nbsp;车牌号：<input class="input-textbox" type="text" id="ShiguCarNo"
				value="" style="width: 80px;" size="10" /> &nbsp;所属分校：<select
				class="easyui-combobox" id="ShiguFenxiaoID" name="ShiguFenxiaoID"
				style="width: 80px;"><option value="">请选择</option>
				<option value="总校">总校</option>
				<option value="挂靠">挂靠</option>
			</select> &nbsp;<a href="javascript:findDataShigu();"
				class="easyui-linkbutton" data-options="iconCls:'icon-search'">查询</a>
			&nbsp;<a href="javascript:flexiExport('shigu');"
				class="easyui-linkbutton" data-options="iconCls:'icon-search'">导出EXCEL</a>
		</div>
	</div>
	<div id="weixiuSearch" style="padding: 5px;">
		<div class="row">
		<!-- 	<span>&nbsp;维修日期：</span><input class="input-textbox"
				onclick="WdatePicker()" type="text" id="WeixiuDateStart_Time"
				value='2017-12-26' size="10" style="width: 80px;" /> &nbsp;到 <input
				class="input-textbox" onclick="WdatePicker()" style="width: 80px;"
				type="text" id="WeixiuDateEnd_Time" value='2018-01-18' size="10" /> -->
			&nbsp;车牌号：<input class="input-textbox" type="text" id="WeixiuCarNo"
				value="" style="width: 80px;" size="10" /> &nbsp;所属分校：<select
				class="easyui-combobox" id="WeixiuFenxiaoID" name="WeixiuFenxiaoID"
				style="width: 80px;"><option value="">请选择</option>
				<option value="总校">总校</option>
				<option value="挂靠">挂靠</option>
			</select> &nbsp;维修性质：<select class="easyui-combobox" id="WeixiuXingzhi"
				name="WeixiuXingzhi" style="width: 80px;"><option value="">请选择</option>
				<option value="汽车保养">汽车保养</option>
				<option value="检修">检修</option>
			</select> &nbsp;维修部件：<select class="easyui-combobox" id="weixiubujian"
				name="weixiubujian" style="width: 80px;"><option value="">请选择</option>
				<option value="轮胎">轮胎</option>
				<option value="发动机">发动机</option>
			</select> &nbsp;<a href="javascript:findDataWeixiu();"
				class="easyui-linkbutton" data-options="iconCls:'icon-search'">查询</a>
			&nbsp;<a href="javascript:flexiExport('weixiu');"
				class="easyui-linkbutton" data-options="iconCls:'icon-search'">导出EXCEL</a>
		</div>
	</div>
	<div id="WeixiuHuizongSearch" style="padding: 5px;">
		<div class="row">
			<span>&nbsp;维修日期：</span><input class="input-textbox"
				onclick="WdatePicker({maxDate:'#F{$dp.$D(\'riqiEnd_Time\');}'})"
				type="text" id="riqiStart_Time" value='2017-12-26' size="10" />
			&nbsp;到&nbsp;&nbsp;<input class="input-textbox"
				onclick="WdatePicker({minDate:'#F{$dp.$D(\'riqiStart_Time\');}'})"
				type="text" id="riqiEnd_Time" value='2018-01-18' size="10" />
			&nbsp;<a href="javascript:findDataWeixiuHuizong();"
				class="easyui-linkbutton" data-options="iconCls:'icon-search'">统计</a>
		</div>
	</div>
</body>
</html>
<SCRIPT Language=VBScript>
</SCRIPT>